// @ts-nocheck
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
// redux 更新状态
import store from './redux/store'

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
      <App />
  </React.StrictMode>
);

// 检测redux中状态，如果改变 重新渲染APP
store.subscribe (() => {
  ReactDOM.render (<App />, document.getElementById('root') )
})


